package com.qingcheng.pojo.comment;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * comment实体类
 * @author Administrator
 *
 */
@Table(name="tb_comment")
public class Comment implements Serializable{

	@Id
	private Integer id;//主键

	private String username;//用户名

	private String orderId;//订单id

	private String spuId;//商品spu_id

	private String skuId;//商品sku_id

	private Date createTime;//创建时间

	private Date updateTime;//修改时间

	private Integer isShield;//0:正常 1:屏蔽

	private String content;//评论内容

	private Integer parentId;//评论id null:正常评论，否则是追评

	private Integer stars;//评论星数

	private Byte commentRate;//评论星级1：好评 2：中评  3：差评

	private String image;//评论图片

	private Integer likeNum;//点赞数量

	private Integer replyId;//回复id

	private Boolean isDelete;//逻辑删除 0:否 1:是

	private Boolean isAnonymous;//是否匿名


	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}

	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getSpuId() {
		return spuId;
	}
	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}

	public String getSkuId() {
		return skuId;
	}
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	public java.util.Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(java.util.Date createTime) {
		this.createTime = createTime;
	}

	public java.util.Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(java.util.Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getIsShield() {
		return isShield;
	}
	public void setIsShield(Integer isShield) {
		this.isShield = isShield;
	}

	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getStars() {
		return stars;
	}
	public void setStars(Integer stars) {
		this.stars = stars;
	}

	public Byte getCommentRate() {
		return commentRate;
	}
	public void setCommentRate(Byte commentRate) {
		this.commentRate = commentRate;
	}

	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}

	public Integer getLikeNum() {
		return likeNum;
	}
	public void setLikeNum(Integer likeNum) {
		this.likeNum = likeNum;
	}

	public Integer getReplyId() {
		return replyId;
	}
	public void setReplyId(Integer replyId) {
		this.replyId = replyId;
	}

	public Boolean getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	public Boolean getIsAnonymous() {
		return isAnonymous;
	}
	public void setIsAnonymous(Boolean isAnonymous) {
		this.isAnonymous = isAnonymous;
	}



}
